/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.school.entity;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;

/**
 * 学校Entity
 * @author LVH
 * @version 2016-02-21
 */
public class School extends DataEntity<School> {

    private static final long serialVersionUID = 1L;

    private String schoolName; // 机构名称

    private String phone; // 联系电话

    private String logo; // 联系电话

    private String address; // 地址

    private String province; // 省

    private String city; // 市

    private String county; // 县/区

    private String lat;

    private String lng;

    private String telephone;

    public String getLat() {

        return lat;
    }

    public void setLat(String lat) {

        this.lat = lat;
    }

    public String getLng() {

        return lng;
    }

    public void setLng(String lng) {

        this.lng = lng;
    }

    public String getTelephone() {

        return telephone;
    }

    public void setTelephone(String telephone) {

        this.telephone = telephone;
    }

    public School() {
        super();
    }

    public School(String id) {
        super(id);
    }

    @Length(min = 0, max = 255, message = "机构名称长度必须介于 0 和 255 之间")
    public String getSchoolName() {

        return schoolName;
    }

    public void setSchoolName(String schoolName) {

        this.schoolName = schoolName;
    }

    @Length(min = 0, max = 30, message = "联系电话长度必须介于 0 和 30 之间")
    public String getPhone() {

        return phone;
    }

    public void setPhone(String phone) {

        this.phone = phone;
    }

    @Length(min = 0, max = 255, message = "联系电话长度必须介于 0 和 255 之间")
    public String getLogo() {

        return logo;
    }

    public void setLogo(String logo) {

        this.logo = logo;
    }

    @Length(min = 0, max = 255, message = "地址长度必须介于 0 和 255 之间")
    public String getAddress() {

        return address;
    }

    public void setAddress(String address) {

        this.address = address;
    }

    @Length(min = 0, max = 64, message = "省长度必须介于 0 和 64 之间")
    public String getProvince() {

        return province;
    }

    public void setProvince(String province) {

        this.province = province;
    }

    @Length(min = 0, max = 64, message = "市长度必须介于 0 和 64 之间")
    public String getCity() {

        return city;
    }

    public void setCity(String city) {

        this.city = city;
    }

    @Length(min = 0, max = 64, message = "县/区长度必须介于 0 和 64 之间")
    public String getCounty() {

        return county;
    }

    public void setCounty(String county) {

        this.county = county;
    }

}